package com.ynet.middleground.approve.bean;

import java.util.Map;

import javax.validation.constraints.NotBlank;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 归还委派任务请求对象
 * @date 2019-11-03 16:42
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "归还委派任务请求对象", description = "被委派人完成任务之后，将任务归还委派人")
public class ResolveTaskReq extends BaseReqObj {

    private static final long serialVersionUID = 2828432038373123671L;

    @ApiModelProperty(value = "任务ID", notes = "任务ID", dataType = "String", required = true)
    @NotBlank(message = "任务ID不能为空")
    private String taskId;

    @ApiModelProperty(value = "任务处理人, 填写会校验与当前任务处理人是否一致", notes = "任务处理人", dataType = "String")
    private String assignee;

    @ApiModelProperty(value = "自定义参数", notes = "自定义参数", dataType = "java.util.Map")
    private Map<String, Object> variables;
}
